package com.amos.muexamclient.common;

import com.amos.bean.Result;
import com.amos.muexamclient.framework.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright © 2018 五月工作室. All rights reserved.
 *
 * @Package com.amos.muexamclient.common
 * @ClassName MuExamController
 * @Description TODO
 * @Author Amos
 * @Modifier
 * @Date 2020/3/25 21:37
 * @Version 1.0
 **/
@RestController
public class MuExamController {

    @Autowired
    RedisService redisService;
    @GetMapping(value = "/saveRedis")
    public Result saveRedis(){
        return Result.success(redisService.save("test","test",120));
    }
}
